﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZTool.Domain.DO;

namespace ZTool.Domain
{
    /// <summary>
    /// Server
    /// </summary>
    class Server
    {
        private TimeDate updateTime;
        private TimeDate registerTime;
        private Address address;
        private Port port;
        private string name;
        private string title; // the show name
        private ServerModel model;
        private string output;
        public void SetTitle(string title)
        {
            this.title = title;
        }
        public string GetTitle()
        {
            return this.title;
        }
        public void SetModel(ServerModel model)
        {
            this.model = model;
        }
        public ServerModel GetModel()
        {
            return this.model;
        }
        public void SetName(string name)
        {
            this.name = name;
        }
        public string GetName()
        {
            return this.name;
        }

        public void SetRegisterTime(TimeDate time)
        {
            this.registerTime = time;
        }
        public void SetUpdateTime(TimeDate timeDate)
        {
            this.updateTime = timeDate;
        }

        public void SetAddress(Address address)
        {
            this.address = address;
        }
        public Address GetAddress()
        {
            return this.address;
        }
        public void SetPort(Port port)
        {
            this.port = port;
        }
        public Port GetPort()
        {
            return this.port;
        }
    }
}
